import request from '@/utils/request';

// 分页点位列表
const listSpots = (params) => {
  return request.get('/attraction_spot/attractionSpot/list', {
    ...params,
    loading: true
  });
};
// 分类列表
const listTypes = (params) => {
  return request.get('/attraction_type/attractionType/list', {
    ...params,
    loading: true
  });
};
// 点位列表
const listSpotPositions = (params) => {
  return request.get('/attraction_spot_position/attractionSpotPosition/list', {
    ...params,
    loading: true
  });
};
// 巡检计划列表
const listPlans = (params) => {
  return request.get('/inspection_plans/inspectionPlans/list', {
    ...params,
    loading: true
  });
};
// 巡检设备列表
const listDevices = (params) => {
  return request.get('/inspection_devices/inspectionDevices/list', {
    ...params,
    loading: true
  });
};
// 巡检设备类型
const listDeviceTypes = (params) => {
  return request.get('/inspection_device_types/inspectionDeviceTypes/list', {
    ...params,
    loading: true
  });
};
// 摄像头列表
const getVideoList = (params) => {
  return request.get('/admin/plugin/video-monitoring/camera/list', {
    ...params,
    loading: true
  });
};
// 摄像头列表
const getVideoTypeList = (params) => {
  return request.get('/gq_video_type/gqVideoType/list', {
    ...params,
    loading: true
  });
};

// 广播列表
const getBroadcastList = (params) => {
  return request.get('/broadcast_devices/broadcastDevices/list', {
    ...params,
    loading: true
  });
};






// // 添加数据接口
// const addData = (data) => {
//   return request.post('/api/data/add', data, {
//     loading: true
//   });
// };

// // 更新数据接口
// const updateData = (id, data) => {
//   return request.put(`/api/data/${id}`, data);
// };

// // 删除数据接口
// const deleteData = (id) => {
//   return request.delete(`/api/data/${id}`);
// };

// // 导出Excel
// const exportExcel = (params) => {
//   return request.get('/api/data/export', params, {
//     responseType: 'blob', // 指定响应类型为blob
//     loading: true
//   });
// };


export default {
  listSpots,
  listTypes,
  listSpotPositions,
  listPlans,
  listDevices,
  listDeviceTypes,
  getVideoList,
  getVideoTypeList,
  getBroadcastList
}